package yf.mall.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;

import java.math.BigDecimal;
import java.util.List;

/**
 * 产品实体
 * 表名 mall_goods
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Sep 17 16:26:33 CST 2019
 */
@Setter
@Getter
public class MallGoodsEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
    //上传者的ID
    private Long userId;
    //所属分类
    private Long type;
    //产品名字
    private String name;
    //单位
    private String unit;
    //过期时间
    private String expDate;
    //ENUM-物流规则:"FREE-包邮","FULL-满免","WEIGHT-计重"
    private Integer logType;
    //产品重量kg
    private BigDecimal weight;
    //每箱数量
    private Integer perBox;
    //物流费
    private BigDecimal logFee;
    //满免数量
    private Integer fullNumber;
    //虚拟销量
    private Long sales;
    //描述
    private String info;
    //分享标题
    private String title;
    //原价
    private BigDecimal oldPrice;
    //现价
    private BigDecimal nowPrice;
    //利润
    private BigDecimal profit;
    //ENUM-开启规格:"CLOSE-关闭","OPEN-开启"
    private Integer openSku;
    //000000-产品主图
    private String img;
    //IMG-产品详情页图
    private String midImg;
    //IMG-产品详情图
    private String bigImg;
    //ENUM-是否上架:"ON-上架","DOWN-下架"
    private Integer shelf;
    //排序
    private Integer sort;
    //库存
    private Integer stock;
    //备注
    private String remark;
    //ENUM-功能类型:"RETAIL-分享有利","AGENT-代理有利"
    private Integer saleType;

    public MallGoodsEntity(){

    }


    //自定义开始
    //sku
    private List<MallSkuEntity> mallSkus;

    //sku主题
    private List<MallSkuThemeEntity> skuThemes;

    //价格
    private List<PriceEntity> prices;
    //活动
    private MallActEntity act;

}
